﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 短信计划
    ///</summary>
    [SugarTable("sms_plan")]
    public class SmsPlan
    {
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="ID" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 计划单号 
        ///</summary>
         [SugarColumn(ColumnName="PlanNo"    )]
         public string? PlanNo { get; set; }
        /// <summary>
        /// 计划名称 
        ///</summary>
         [SugarColumn(ColumnName="PlanName"    )]
         public string PlanName { get; set; }
        /// <summary>
        /// 病人id 
        ///</summary>
         [SugarColumn(ColumnName="PatientId"    )]
         public string PatientId { get; set; }
        /// <summary>
        /// 短信模版id 
        ///</summary>
         [SugarColumn(ColumnName="SmsId"    )]
         public int? SmsId { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="CreateDate"    )]
         public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 发送类型 1重复，2一次 
        ///</summary>
         [SugarColumn(ColumnName="PlanType"    )]
         public string PlanType { get; set; }
        /// <summary>
        /// 短信发送时间 
        ///</summary>
         [SugarColumn(ColumnName="SendDate"    )]
         public DateTime? SendDate { get; set; }
        /// <summary>
        /// 备注 
        ///</summary>
         [SugarColumn(ColumnName="Description"    )]
         public string? Description { get; set; }
        /// <summary>
        /// 状态1.未发送2.已发送3.未完成 
        ///</summary>
         [SugarColumn(ColumnName="PlanStart"    )]
         public int? PlanStart { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
         [SugarColumn(ColumnName="CreateUserId"    )]
         public string? CreateUserId { get; set; }
        /// <summary>
        /// 修改人 
        ///</summary>
         [SugarColumn(ColumnName="UpdateUserId"    )]
         public string? UpdateUserId { get; set; }
        /// <summary>
        /// 修改日期 
        ///</summary>
         [SugarColumn(ColumnName="UpdateDate"    )]
         public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
         public DateTime? SendingDate { get; set; }
    }
}
